package eteam.aps.common.exceptions;

import org.springframework.http.HttpStatus;

/**
 * 业务异常类
 */
public class BusinessException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	
	@SuppressWarnings("unused")
	private int code;
	
	@SuppressWarnings("unused")
    private String msg;

    public BusinessException() {
        super();
    }

    public BusinessException(String message) {
        super(message);
        this.msg = message;
    }

    public BusinessException(HttpStatus statusCode, String message) {
        super(message);
        this.code = statusCode.ordinal();
        this.msg = message;
    }
}
